package com.inpion.biz.broker.business;

import kr.co.redcircle.broker.Broker;
import kr.co.redcircle.broker.information.NodeInformation;
import kr.co.redcircle.broker.io.BrokerRequest;
import kr.co.redcircle.broker.registry.Registry;

public class ExecuteTargetTestCase {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		// BrokerRequest to NAME node
		BrokerRequest request = new BrokerRequest();
		request.put(Broker.FROM, "BUSINESS");
		request.put(Broker.TO, Broker.NAMENODE);
		request.put(Broker.BUSINESS_S, "business");
		request.put(Broker.METHOD, "getExecuteTarget");

		NodeInformation nodeInfo = Registry.getNamenodeInformation();
		
		Registry.sendUnicast(nodeInfo.getIp(), nodeInfo.getPort(), request);
		
	}

}
